package com.topscomm.gpm.xxljob;

import com.topscomm.gpm.service.IGpmProjectService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author wudaliang
 * @date 2021/7/8
 * @description:
 * @modify:
 */
@JobHandler(value = "projectWillExpireRemind")
@Component
public class ProjectWillExpireRemind extends IJobHandler {
    @Autowired
    private IGpmProjectService gpmProjectService;

    @Override
    public ReturnT<String> execute(String param) throws Exception {
        gpmProjectService.willExpireRemind();
        return ReturnT.SUCCESS;
    }
}
